import service from "../../utils/request";
type addressType = {
  ownerId: number;
  detailedAddress: string;
  phone: string;
  tag: string;
  consigneeName: number;
};

export function addAddress(data: addressType) {
  return service.post("/address/addAddress", data);
}

export function getAddressList() {
  return service.get("/address/getAddressList");
}

export function getAddressById(data) {
  return service.get("/address/getAddressById?id=" + data);
}
